<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="/public :: #public_head"></head>
<body>
<header th:replace="/public :: #public_header"></header>
<section th:replace="/public :: #public_time"></section>
<!---->
<section class="publicMian ">
    <div class="left" th:replace="/public :: #public_left"></div>
    <div class="right">
        <div class="location">
            <strong>你现在所在的位置是:</strong>
            <span>订单管理页面>>订单修改</span>
        </div>
        <div class="providerUpdate">
            <form action="#" th:action="@{/bill/update}" th:method="post" id="billForm">
                <input th:type="hidden" name="id" th:value="${billProvider.bid}"/>
                <div class="formItem">
                    <label for="billCode">订单编号：</label>
                    <input type="text" th:value="${billProvider.billCode}" name="billCode" id="billCode" placeholder="请输入订单编码"/>
                    <span >*</span>
                </div>
                <div class="formItem">
                    <label for="billName">商品名称：</label>
                    <input type="text" th:value="${billProvider.billName}" name="billName" id="billName" placeholder="请输入商品名称"/>
                    <span >*</span>
                </div>
                <div class="formItem">
                    <label for="billNum">商品数量：</label>
                    <input type="text" th:value="${billProvider.billNum}" name="billNum" id="billNum" placeholder="请输入商品数量"/>
                    <span >*</span>
                </div>
                <div class="formItem">
                    <label for="money">总金额：</label>
                    <input type="text" th:value="${billProvider.money}" name="money" id="money" placeholder="请输入总金额"/>
                    <span >*</span>
                </div>
                <div class="formItem">
                    <label >供应商：</label>
                    <select name="pid" id="pid">
                        <option value="">--请选择相应的提供商--</option>
                        <option th:each="provider:${providers}" th:value="${provider.pid}" th:text="${provider.providerName}" th:selected="${billProvider.pid == provider.pid}"></option>
                    </select>
                    <span >*</span>
                </div>
                <div class="formItem">
                    <label >是否付款：</label>
                    <input type="radio" th:checked="${billProvider.pay == 0}" name="pay" value="0"/>未付款
                    <input type="radio" th:checked="${billProvider.pay == 1}" name="pay" value="1"/>已付款
                </div>
                <div class="providerUpdateBtn">
                    <input type="submit" value="保存"/>
                    <input type="button" value="返回" onclick="history.back(-1)"/>
                </div>
            </form>
        </div>
    </div>
</section>
<footer th:replace="/public::#public_footer"></footer>
</body>
</html>